import 'package:dio/dio.dart';
import 'package:flutter/material.dart';

class DioUtil{
  final _dio = new Dio();
  static final head_url = "http://192.168.43.20:8080/";

  sendPostReq(String url,data){
    var response = _dio.post(head_url+url,data: data);
    return response;
  }

  sendGetReq(String url){
    var response = _dio.get(head_url+url);
    return response;
  }
}